<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
    	<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
    	<link type="text/css" rel="stylesheet" href="form.css" />
	    <script type="text/javascript" src="extjs/ext-all.js"></script>  
	   	<script type="text/javascript" src="js/registration.js"></script> 
    </head>
<body>
	<h1 id="signup_text"> Please, complete the fields  </h1>
	<div id="errors"></div>
   	<div id="signup_form"></div>
</body>
</html>


<!--  Previous <head> -----------------------------------------------------------------------------
<meta charset="utf-8" />
        <title>Registration</title>
        <link type="text/css" rel="stylesheet" href="form.css" />
-->


<!-- Previous <body>  --------------------------------------------------------------------------
<form method="post" action="registration">
            <fieldset>
                <legend>Registration</legend>

                <label for="name">Name : </span></label>
                <input type="text" id="email" name="name" value="<c:out value="${param.name}"/>" size="20" maxlength="60" />
               	<span class="error">${errors['name']}</span>
                <br />

                <label for="E-mail">E-mail : </span></label>
                <input type="text" id="motdepasse" name="email" value="" size="20" maxlength="20" />
                <span class="error">${errors['email']}</span>
                <br />

                <label for="confirm">Confirm e-mail : </span></label>
                <input type="text" id="confirmation" name="confirmMail" value="" size="20" maxlength="20" />
                <br />

                <label for="username">Username : </label>
                <input type="text" id="nom" name="username" value="<c:out value="${param.username}"/>" size="20" maxlength="20" />
                 <span class="error">${errors['username']}</span>
                <br />
                
                <label for="password">Password : </label>
                <input type="password" id="nom" name="password" value="" size="20" maxlength="20" />
                <span class="error">${errors['password']}</span>
                <br />
                
                <label for="confirmPassword">Confirm password : </label>
                <input type="password" id="nom" name="confirmPassword" value="" size="20" maxlength="20" />
                <br />

                <input type="submit" value="Register" class="sansLabel" />
                <a href="/Cafca" class="log_in">Log in</a>
                
                 <p class="${empty errors ? 'success' : 'error'}">${result}</p>
                <br />
            </fieldset>
        </form>
----------------------------------------------------------------------------------------------- --> 